import { request } from './request'

// 播放音乐
export function playMusic(id) {
    return request({
        url: '/song/url',
        params: {
            id
        }
    })
}

// 获取歌单
export function getPlaylistDetail(id) {
    return request({
        url: '/playlist/detail',
        params: {
            id
        }
    })
}
// 获取热门评论
export function getHotComment(id,type) {
    return request({
        url: '/comment/hot',
        params: {
            id,
            type
        }
    })
}

// 获取最新评论
export function getNewComment(id,limit,offset) {
    return request({
        url: '/comment/playlist',
        params: {
            id,
            limit,
            offset
        }
    })
}